package kr.hkit.info.powerjava.ch23;

public class Counter {

	private int value=0;
	
	public synchronized void increment(){
		this.value++;
	}
	
	public synchronized void decrement(){
		this.value--;
	}
	
	public synchronized void printCounter(){
		System.out.println(value);
	}
}
